package com.verisette.ncos.persistence.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Id;

public class LogResultMasterCustomerId  implements Serializable {
	
	private static final long serialVersionUID = 5139745466222058896L;

	@Id
	@Column(name="LAST_UPDATE_DATE")
	private String lastUpdateDate;
	
	@Id
	@Column(name="NAME_TYPE")
	private String nameType;
	
	@Id
	@Column(name="OriginalID")
	private String originalID;
	
	@Id
	@Column(name="SourceName")
	private String sourceName;
	
	@Id
	@Column(name="USERID")
	private String userid;

	public String getLastUpdateDate() {
		return lastUpdateDate;
	}

	public void setLastUpdateDate(String lastUpdateDate) {
		this.lastUpdateDate = lastUpdateDate;
	}

	public String getNameType() {
		return nameType;
	}

	public void setNameType(String nameType) {
		this.nameType = nameType;
	}

	public String getOriginalID() {
		return originalID;
	}

	public void setOriginalID(String originalID) {
		this.originalID = originalID;
	}

	public String getSourceName() {
		return sourceName;
	}

	public void setSourceName(String sourceName) {
		this.sourceName = sourceName;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((lastUpdateDate == null) ? 0 : lastUpdateDate.hashCode());
		result = prime * result
				+ ((nameType == null) ? 0 : nameType.hashCode());
		result = prime * result
				+ ((originalID == null) ? 0 : originalID.hashCode());
		result = prime * result
				+ ((sourceName == null) ? 0 : sourceName.hashCode());
		result = prime * result + ((userid == null) ? 0 : userid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LogResultMasterCustomerId other = (LogResultMasterCustomerId) obj;
		if (lastUpdateDate == null) {
			if (other.lastUpdateDate != null)
				return false;
		} else if (!lastUpdateDate.equals(other.lastUpdateDate))
			return false;
		if (nameType == null) {
			if (other.nameType != null)
				return false;
		} else if (!nameType.equals(other.nameType))
			return false;
		if (originalID == null) {
			if (other.originalID != null)
				return false;
		} else if (!originalID.equals(other.originalID))
			return false;
		if (sourceName == null) {
			if (other.sourceName != null)
				return false;
		} else if (!sourceName.equals(other.sourceName))
			return false;
		if (userid == null) {
			if (other.userid != null)
				return false;
		} else if (!userid.equals(other.userid))
			return false;
		return true;
	}

	
}
